package com.whh.permission.dao;

import com.whh.permission.po.AssetScrap;
import com.whh.permission.po.AssetTake;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IAssetHandlerDao {
    /**
     * 添加领用表
     */
    void addAssetTake(AssetTake assetTake);

    /**
     * 归还:添加
     */
    void updateAssetTake(AssetTake assetTake);

    /**
     * 查询借用表
     */
    List<AssetTake> queryAssetTakeByUId(Integer uId);

    /**
     * 添加报废表
     */
    void addAssetScrap(AssetScrap assetScrap);

    /**
     * 查询报废表
     */
    List<AssetScrap> queryAssetScrap();

    /**
     * 更改报废表
     */
    void updateAssetScrap(AssetScrap assetScrap);
}
